/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.openbravo.pos.bean;

import cn.ekuma.data.dao.bean.I_AutoGeneratorStringKey;
import cn.ekuma.data.dao.bean.I_BaseBean;


/**
 *
 * @author Administrator
 */
public class Resource implements I_BaseBean<String>,I_AutoGeneratorStringKey{
    /**
	 * 
	 */
	private static final long serialVersionUID = 6474833705511639381L;
	public static int RESOURCETYPE_TEXT=0;
    public static int RESOURCETYPE_IMAGE=1;
    public static int RESOURCETYPE_BINARY=2;
    public static int RESOURCETYPE_STATE=3;

     private String id;
     private String name;
     private int resType;
     protected byte[] content;

    public Resource(String id, String name, int resType, byte[] content) {
        this.id = id;
        this.name = name;
        this.resType = resType;
        this.content = content;
    }

    public Resource() {
		// TODO Auto-generated constructor stub
	}

	public byte[] getContent() {
        return content;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public int getResType() {
        return resType;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public String getKey() {
        return this.id;
    }

    public void setKey(String key) {
        this.id=key;
    }

	public void setName(String name) {
		this.name = name;
	}

	public void setResType(int resType) {
		this.resType = resType;
	}
}
